package Employees;

class HourlyEmployee extends Employee{
    private double hour;
    private double rate;
    public HourlyEmployee(String name,double hour,double rate){
        this.name=name;
        this.hour=hour;
        this.rate=rate;
    }

    @Override
    public double calculateSalary() {
        return hour*rate;
    }
}
